package com.brunogb.pages.database.repository;

import java.util.List;

import com.brunogb.pages.exceptions.RepositoryException;
import com.brunogb.pages.server.model.Profile;
import com.google.appengine.api.datastore.Key;


/**
 * @author jairo
 *
 */
@SuppressWarnings("all")
public class ProfileRepository extends BaseRepository<Profile> {

	/* (non-Javadoc)
	 * @see br.org.ipivl.server.repository.BaseRepository#count()
	 */
	@Override
	public int count() throws RepositoryException {
		return count(Profile.class);
	}

	/* (non-Javadoc)
	 * @see br.org.ipivl.server.repository.BaseRepository#find(java.lang.Object)
	 */
	@Override
	public Profile find(Object id) throws RepositoryException {
		return find(id, Profile.class);
	}

	/* (non-Javadoc)
	 * @see br.org.ipivl.server.repository.BaseRepository#findAll()
	 */
	@Override
	public List<Profile> findAll() throws RepositoryException {
		return findAll(Profile.class);
	}

	@Override
	public Profile find(Key id) throws RepositoryException {
		return super.find(id,Profile.class);
	}

}
